/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objective_functions;

import problems.ZDT6;

/**
 *
 * @author robson
 */
public class ZDT6_F1 implements ObjectiveFunction {
    
    private ZDT6 zdt6;
    private double result;
    
    public ZDT6_F1( ZDT6 zdt6 ) {
        this.zdt6 = zdt6;
    }

    public double function( double[] dimension ) {
        result = 1.0 - ( Math.exp( (-4.0) * dimension[0] ) *
                Math.pow( Math.sin( 6.0 * Math.PI * dimension[0]), 6.0 ) );       
        
        return result;
    }

    public double getResult() {
        return result;
    }
}
